//
//  ZTSubTextField.m
//  ZTuo_QuantivitiTrasaction
//
//  Created by chu on 2018/11/12.
//  Copyright © 2018 chu. All rights reserved.
//

#import "ZTSubTextField.h"

@implementation ZTSubTextField

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

//重载方法，控制弹出选项
- (BOOL)canPerformAction:(SEL)action withSender:(id)sender
{
    //粘贴
    if (action == @selector(paste:))
    {
        return YES;
    }else if (action == @selector(copy:))//赋值
    {
        return YES;
    }
    return [super canPerformAction:action withSender:sender];
}


@end
